added support for non NULL terminated strings
Added license doc