Added support for powers.
Fixed parsing bugs.