[#204] Use constants

* Cleanup code
* Update license