initial nxapi addition. Some functions filled out, others pending.