changed numbering g from vector to map
added debuging symbols to compilation