Added comments and deleted some code.