clean up on comments and slight moving around of sleep code.