added option to specify interval for -k

version bump
code cleanups
initialise instead of assign (++performance)