corrected graphical representation of masks
bugfix of gain calculation in multiple masks
example with multiple masks