Added Methods to create doc entries

without installing anything. Also inserted this
methods in a way that prevents code dublication.
Added tool functions

to remove code duplication and improve readability of code.