Edited license, added license comment to file and cleaned up the code a tiny bit.