Added help to shell.
Added support for VERSION and PREAMBLE. Fix segfault when wrong command name given.