rm should add pwd
added test.js
general improvements