Fixed bug in toString method when base contains more than one digit.
Minor fixes.