Move PathgridGraph into separate files.
Remove logging.