add NIF macros, readme