License

I added a license line at the top of each file and did some other minor cleanup.