Added some comments and entered a bug.