Streamlined compression and added UTF8
added repl for mode 4