additions to higgsanalysis and fixing bugs