Added pinModes and rearranged files for clarity
Rearranged files for clarity, added todo