Make minor improvements

Feel free to take what you consider useful. 

The explanation for every change and the links that provide more in-depth information, can be found in the commit messages.

--

Hope it helps. :)