Renamed global variables such that their underscore prefix now consistently reflects that they are shared among main program and interrupt handlers. Their volatile attribute was not changed however.