Added custom constructor support
Added license and updated package.json