Added a function to strip zero-length codes; fixed typos.