added pgn parser and writer (without comment support yet) + minor refactorings

(0) -30 -10 -1 +1 +10 tip

mercurial