Fixed some bad code examples