Completed comments and removed some unecessary code.