Cleaned up code, spruced up README, and added license