Pin clearing should only happen when the mode is being set, not every
time. #38
setting the mode on the PIC side more carefully

By paying close attention to which modes get cleared and when i avoid
the looping clears of extra pins. This shoudl close #38