changed functions to compileFile and compile for files and source respectively