Updated documentation and added example