add getLibraries and refactoring serach
Merge remote-tracking branch 'origin/master'