complete binary PGN implementation and testing