Improve function comments. Decrease waitkey time