cleaning+comments

cleaned up some of the  code and added a lot of comments to make it
easier to understand.  I also made the URL input and the submit input
button on the same line.