checkstyle fixes, avro implementation & tests added