Cleaned up comments

Cleaned up the comments and made it easier to follow. Added example in
the bottom.