Finished first round of improving docstrings

All files have now been editoed to have better docstrings and comments, but there are still improvements to be made.