more work with comunicating with the host. Started implementing the C module