add commodity serializize/deserialiaze functions
add failing junit test