compile notes
compile.ml function to string filewriting