added documentation and g2c fits