Added comments

Added lots of comments to clarify many lines of code and removed some
white space. Also simplified the lines that define the colors for the
background and titles