Add missing license, header and npmignore files. Update to support dependencies