fix examples
automatically save file when it is modified and compiles