Commented memory cleanup.  I'm helping!
Code formatting and exceptions added.