Added IoMode and updated sim classes with it.
Sim: added more comments
Pin: Added getIoMode()
Simulation: Notes