Revised the commits. I reworded some commit messages and fixed a docstring typo.