added fit function for pmt
improved initial paramters determination for pmt, added pmt fit function