Beautified the code. Removed old comments and added new ones.