Added winston as default logger and fixed some bugs on document search. Fixes #139