HW Decoder - Decoder.java - added and some modifications in Encoder.java