removed debugging in g2 + added quick documentation