Preliminary support for QA & docs.

Add preliminary support for QA processes.
Start documenting the code.