[nadc_tools] updated IDL code with recent changes, made IDL code compile on Mac OS, some minor bugs fixed