improved pendulum.py, so it autodetects the begin of launching of a pendulum and autostarts
added a new mode for the function fit_dsine, to enable sine fitting when the frequency is in Hz unit unstead of kHz