optimizations and clean up, adds checksumming to FileUtils