some changes to IO, clock and LED
removing unused define macros