commented and cleaned arduino sketch