Minor code improvements.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
Improved the self-documentation.

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>