fixed unpredictable ways caused by atol (should be atoll), added some printstr, finder, test codes