Power representation implemented
Doctests added