fixing atoi, implemented itoa