updating documentation and adding simple example