Debugging for use on real hardware

Various bugs not picked up during simulation
Merge branch 'master' of https://github.com/ska-sa/corr