minor: rearrange initialization of variables into a more logical grouping
add checkbox to control inclusion of reference wave also in instantaneous calculation page