revisions revised
added const-specific begin/end to PolyTable
const references instead of by value