added doubleprint command line option and fixed increment