Implemented search

Fixes #1