initial skeleton for PDL parser
extracted into method for making the metric
minor cleanup of docstring samples
minimal tests for the parser
and one more test for get_state