added --max-length parameter for limiting printed binary data to lengths other than 16