Realy the read/write command should probbably get updated to be able to tale some additional data for writing but meh... creating an utility function to generate extra-data is also workable, even if it creates some unneccesary objects...
In order to make edits to class readable i commit this mostly white space edit. Further more it removes a few application specific or testing lines.