Formatted and cleaned up code and comments.