Update main.h

Added missing NUM_ELEM function and fixed spelling.