pausing

Added getchar to pause terminal screen and exit code for main function