Implemented readFile and updated compileOs.sh for shell