added a very very VERY thorough chmod test
added the atoi function