Adds license boilerplate

and cleans up a few comments.