Replace atoi() with toInt()
Merge pull request #706 from dorkster/bugfixes

Replace atoi() with toInt()