* Fixed some code formatting inconsistency,
* Filled some comments,
* Added const to references in parameters.