added tolerance check, and interrupt handler
added level data
added f cycle
added smoothening factor plot