Add dio.h header operations and update tools with new interface