Added docstrings to the methods in class main