Better comments. Also some minor changes
Better comments.
Commented.