added setEncoding(), spacing updates, doc updates