updates to correlated luminosity function, flagging, and plotting