cleaned up formatting and comment styles