fix code and add licenses

* add ISC license (BSD-like)
* fix release handling