Removed more extraneous code, added GPL licensing.