Command parsing

New command parser using regular expressions.

Closes #5 and related to issue #7.

list