Updated solver with diode functionality

Made a few changes:

Component now takes object as an argument
Instantaneous voltages used to check bias of diode
Redundant error checking for diode bias removed