#56 improve dio device code
#56 improve dio driver code