added stuff for drawing input part of scheme
fix for connections overlapping
added template for AND with 3 inputs