minor changes to sleep values and minor stylistic tweak