Use defined constants for min/max ints in tests
Code cleanup/fixes
Read piece data from multiple files when resuming