Updated documentation, fixed small issue in the example.