fixed error during parsing, remove saving in file
added parser as new class