fleshed out some things, added print-version code