Combine short trailing blocks onto one line.
Standardize on `put` instead of `write`.
Added methods to put arrays of values.
Added generic helper method for putting arrays of values.