- Added code comments\documentation and removed debug statements

Final version for submission of assignment 2.