added wiring diagram
polish tests and removing redundant code in coderlib