Added pow. Added doubletostring. Removed old code. Removed repeat.