added write to register from table / small fixes