Docstrings and output

Added doctrings and fixed typos in output and comments