main and buttons

added main control loop and set up button ports