Add command type and NewDocumentCommand

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>