Fixed docs and added example.