Added support for runtime variables when processing command files.
Fixed history to include date.