fix errors in comments, move call to setLastrun()