Add permalink feature with seedable RNG
Fix a couple of minor issues