Fixes docstrings, comments and some naming conventions.