Fix several examples and add mnist example
Merge pull request #16 from iandanforth/newExamples

Fix several examples and add mnist example