Bootcamp - deleted my mac partition accidently
While installing windows onto my mac (which successfully worked) I realised that I had accidently deleted my mac partition and most likely have given the storage to the window's partition. After messing around with some stuff in recovery mode I can no longer load into windows, and whenever I start my computer there is now a folder with a question mark blinking non-stop. Here in recovery mode, I can somehow see all the files and applications I normally had on my macbook before **** hit the fan so I'm guessing I can still fix this without fully installing mac os x again. Oh, and also when I tried installing the mac os x it would not let me and the HD was greyed out. I have no idea how I can use disk utility to fix this so I need help on what to do, and how to get the sudo commands in terminal working so I can post them here to help you guys out.
MacBook Pro with Retina display, iOS 9.2, 2013