Added a 'search' type, implemented basic command line arguments.
Codeword works! Code is awful though, so some serious refactoring is required.