implemented loadFile for filesystem api

also replaced tabs with 4 spaces