added code for LED indicators
added shutdown subroutine and option to terminate script by pressing all buttons