Licensing and cleanup

* Licensing and under GNU GPLv3
* cleanup