Module doc and minor refactor
Overridable logging and html debug template