Added NEC-interface code which was accidentally deleted
More cleaning
More cleaning