Added files and functions for manage interrups. First implementation.
Some fix.