made nap and sleep parameters configureable

added --napcheck and --sleepcheck parameters to
override default intervals for checking nap mode and
sleep mode. Parameters are in milliseconds.