added options for fanout, maxpeaksperframe, f_sd; restructured analyzer as class to accommodate parameters