remove cwd module

It’s not needed.
update dependencies and devDependencies
update build script and pretest script
link to license file
add function name