Made some changes to documentation, fixed a few bugs in example code