Removed a lot of dead code and code that related to multiple licenses.