cleaned up avro.cc a bit and uncomment some functionality
added header file and cleaned up the code a bit.