writeData now simply writes the rowvec to file, thus automatically having correct dimensjon and adding required spaces.
Copied from project 3. Space as separator instead of comma. Removed legend.
Script to easily run code with arguments and automatically plot. Copied from project 3. Added usage description as comment.