fixed some minor syntax issues with example code