Added descriptions to the stub and fixed docstring compliance with PEP257 as well as other formatting issues.