Added more implementation and converted the model class from commons compress from apache