Added code to handle sleeping and wakeup. Need to be checked
Software interrupt by INT working
Updated with better info a TODOs