Simplified some values, and removed undeclared/unused variables.
Simplified functions for base conversions between number strings.