cleaned up api function. Added tests for search
upped version number