sudo grub-install /dev/sda(which I think is where I went wrong) then
sudo update-grubthat seemed to work at first but my grub menu didn't update so I ran the boot repair utility in ubuntu and after that grub seemed fine. Grub loaded up with my operating systems detected and eveything. The first thing I did after that was load up Windows 8 and it seemed to be working; I saw the boot screen and the spinner with no messages under it so I just held the power button because I wanted to test OS X booting. At that point OS X loaded up and wanted to do a check disk on the windows partition and I didn't let it because I didn't want to wait.
I decided to go back into windows and it wouldn't boot. I was told to do a system restore and I tried it but the repair utility said simply that an error occured. I rebooted and the next time it gave me the option of shutting down or opening advanced options. I opened the advanced options and opened up the familiar system restore point utility. It told me that it couldn't do a system restore because I needed to enable 'system protection' on my C drive. The only thing I could find for that was a powershell command which I can't run from the repair console and some other site saying to run
chkdsk /Rwhich I ran. At the end it told me it could not transfer the log file because 'error 50' occurred.
I also tried a refresh which told me it couldn't complete do to 'an error.' I think the problem is when I ran
grub-installbecause the log from the boot-repair utility metioned something about MBR which makes me think that grub ignored the EFI system in place and wrote an MBR which could be messing with the windows boot process.
Is there any more information I can provide to solve this and is there any way I can avoid re-installing windows 8 from scratch (Can I even do that with an upgrade license)? Thanks in advance!