adding pulse_in example, pwm is i think working, although the board i have doesn't support it on the stat led so no way to test it ATM, also adding appropriate close commands for examples