Version 2.0: can read different format of templates;
             can derive on TOA or TOA for each channel;
			 improved algorithm (fitting parameter b for each channel first).