Removed unused and inefficient pow2 function.
Standardized documentation.