Added documentation and example