adding doc strings for some reason and cleaning up formatting