Documentation and tests

Bringing some light:

* source code comments compatible with GoDoc.
* Implemented basic tests and examples.