Review cavity operation module(ICSHWI-13140)
I removed most of the stack allocation to heap global storage. also, the repetitive malloc() and free() calls in the detuning script have been removed and allocation is done once at the init time. this is true for previous stack allocation as well. however real-time tests need to be done(including the code section that was removed).