Fixed #1, implementing error-handling to root node and file-reading, edits on xml-stuctures