Implemented save/load to file.

Also added some more words to technical report, but its not finished.