Extensive home cleaning. Code documentation.

v.0.1.12 for Issue #12