[TASK] Cleanup to docblocks and code

Renamed some variables, fixed some FLOW3 uses, added/tweaked docblocks.
Merge pull request #3 from kdambekalns/fixes-t3home13

[TASK] Cleanup to docblocks and code