Fixed the examples and got the code to work.