Added a license and did some cleanup.