Removed debug print statement.
Normalize the polynomial produced in decomposition as rather than new variable t need t/(p-1).