1. Replaced Decoder/Encoder with the Screening streams
2. Replaced custom write/read methods with standard java serialization mechanism
Replaced were appropriate Integer to int.