changed some digital IO ports and some debug