Module prepared for NPM

I've added the License and README file.
I've merged the last changes from the original repository.
I've updated the package.json to add all the data required by NPM.
Some minor improvements on the capture system: added wait option, to be able to control the waiting time, and better control of the default values.