tmgr: Add docs and fix coding style issues

Signed-off-by: Nikita 'webconn' Maslov <wkernelteam@gmail.com>