Added documentation and print example