implemented configure in main script, closes #30
implemented configure in main script, closes #30

- also restructure main script a bit.
- could do with some more cleanup and some error handling along the way.

latrokles/search-cli