fix compatibility with Emacs < 24
add mode map to doc-string
use built in functionality of define-derived-mode
Merge branch 'pr/1'