New RC reading funcion using Interruptions.
Some global variables deleted or changed to local to save memory space.