Write.py, Documentation, and fixes

I will delete write.py, or perhaps create a package that sets up a file
for the matlab script provided by Hejnk the man... the legend