Added load/save example commands.
Improved main.
Added debug info.