Interim.
Reorg initialization code, added -tmpdir option.