Changed license to GPLv3. Fixed up README. Cleaned up the rest of the code.