Change signatures to indicate immutable return type

See discussion in #3.