Added documentation and examples

Added documentation and examples