code formating and experimental preescaler in 1MHz instead 100KHz