Refactor: Simplify initialisation of calc_mode_par_t instance, and document all methods
This MR refactors calc_mode_par_t
, moving initialisation into the type definition. It also adds documentation, with some examples of how the bitwise functions work. I touched this whilst working through various initialisation routines.