Adding a print version command and a few more debugging statements.