app: added some documentation.
app: adding more tests.