using emitter on asynchronous method

I have changed the asynchronous method in a way one has to use the .on() method for 'file' and 'end' events.

I have also changed some variable names. Just to make the code a little be more readable.

The instructions of use in the README.md file has been updated according to my changes.