Refactor documentation engine.

Signed-off-by: crynobone <crynobone@gmail.com>
Improves docblock.

Signed-off-by: crynobone <crynobone@gmail.com>