commented and cleaned ODthread