added all state stuff with int 16 stuff
added state to hubo_ach.py but it does not seem to work when i try to read the data back