Documentation

i started documenting our code. also moved some files around which are
not really needed anymore.