[fix] Fixed module exports
[fix] Allow string as argument
[fix] Trim the supplied prefix
[fix] Return an object when nothing is found
[fix] Don't start recursion when npm test is called
[test] Added basic tests for the features added above.