added recoding functionality to the perpetual generator
added recoding stack for the perpetual code
enabling recoding unittests for the perpetual code