Improving the documentation to include examples, remove redundancy