fix typos and better example code output