uncommented the deflate. I think they now work. commented out to println lines that cause an array out of bounds exception