Fix for issue #107: Controller read too many bytes for IO message

As reported by @shaun-edwards: seems like a confusion between *nr-of-items* vs *nr-of-bytes* for the `socket_read_binary_integer(..)` statement in `prog`.

PS: I've not had an opportunity to test these changes on actual hardware. I would appreciate it if a reviewer could do that.