Gate/Wire split complete

Gate and Wire split is complete. And working!