use range-based for operators
use statfs64 to acquire fs size
coding style fixes