Fix code examples (Closes #21)