Merge pull request #7 from vbarbin/master

Moved exec function from index.js to core.js
Merge pull request #8 from vbarbin/develop

Added unit tests