Added an optional constructor argument to specify the number of bytes to download

Thanks @toben for the idea