Improved code readability by using a consistent coding style.

Hi Amin, this is my first pull request on GitHub :-)