Added in docstrings and seperated module into sub functions