fixed bugs with period name replacement system; removed test code
(oh hey, this stuff works locally. it's amazing!)