Added comments and overall cleanup.