added systemcommands and writing/reading to files