update main.c - episode 5

Updated parity() function and added a few todo's for the upcoming episodes.