Adding documentation and examples to each function