Commented the code. Added functionality to menu option 2. Fixed a few minor bugs.