Comments

Added some comments. Also removed some unused code.