Added return status to loadFile/loadString