modified gaps.h : improved documentation