Added docs using sphinx, and also edited some doc strings