still debugging, added method for filereading (actually .json would be better).