Added documentation and print function.