Fixed power function. Improved documentation.