write CAT to file

CAT objects can now be saved to mat files (button in GUI working)
Martin's allvaleq file
reset button added and working

needs some cleaning up... will do at a later point
data2str slightly modified

empty fields are now shown as empty text boxes instead of containing the
string '[]'