Refactor
Fix LZ decoder bug
Refactor
Add more checkS