added g2d api documentation; implented g2d object creations