started doc for implementing pgm