input history and game saving
savegame import
use cmdargs library for option parsing

Also, use the new `dbgMsg` function for handling debug messages.