Changed license, fixed imports, minor formatting