Cleaning up XorCode. Work in progress.