Added onLoad function which gets called every time a file has been loaded.
Fixed text file loading bug.
Merge branch 'master' of https://github.com/despondentdonkey/lode