Added the getHomework method, added some docstrings and some other minor fixes