Updated documentation. Added code example