Implements simple compression on files.
Updates notes about encode/decode
Fixes various bugs that made encoding fail.
Decoding now works.