use long long integers instead of ints
minor comment formatting