fixed main.c (added atoi tests)