removed unused macros
Added ignoring of elf and hex
used watchdog timer