QA and examples

Fixed some errors while creating the documentation and examples