Changed size to long (from int)

Needs to accommodate larger byte counts than 2^32