Corrected type from int (%d) to unsigned long (%lu) in lines 462, 543, 547. Fixes #5.