Fixed #8, new "loadFile" function