Switch cat use file mode of BEGIN, not APPEND

cat would never print out data because the offset of the file was immediately set to EOF, this reading nothing in
Fixed touch

Rewrote touch to be compatible with the new way things are done instead of the old way.  Fixed other minor bugs