Fixed a bug with global exponent method, started documentation and modified some interface. This is a not working commit.