Added pn, digital_pin_input, digital_pin_output and analog_pin_input classes, rearranged main loop and debugging lines
Fixed digital_pin_output class setup(), rearranged main code