Optional libpath, removed search, added some jsdoc