Added all the basic gates and fixed the offset and scaling issues when dragging shapes.