Improved documentation.
Fixed broken pow function for negative integers.