Added buttons and power latching defines
Added initialization for LEDs, buttons, and power latching.