Fixes error in Prim.IO.writeBus
Adds mod' primitive
Fixes error in Prim.IO.newState