Minor update
Huge optymalization
Implement Diode class