Fixed a lot of minor issues. Now adepthub integration is supposed to work
Lots of minor fixes, not quite sure what the changes represents, but we are in a good state now I think. Future me: I am sorry