trigger problem_Martin

some triggers are ignored
fix interrupt bug_Martin

cli(); and sei(); are necessary