First working version

The program compiles now and the search function seems to be working in
practice. Uploading only the key files.