LZW works now.
A bit of cleanup.