code cleanup, reformat, remove bad comments, add good comments, rename confusing variables