Misc changes

* new line changes
* removal of redundant comments
* typo fixes in comments and docstrings
* minor modification in a test