cleaned up issues with Daniel's code

There were a lot of style things and a misunderstanding of the protocol
between the cape and the BBB.
15 files changed