Updated printing of complex power. Added tests.