Fixed some errors in the examples