Updates main.c added some helper functions

Implemented a WriteToMem() / Push() / Pop() Functions set in to the Emulator. For episode 18b on Youtube.