Complete skeleton for main. Just need to write the functions :)

		 * src/main.cc: Here.
Fix few bugs.