First commit of code, command line interface and indexing working