fix errors, more example code