changed metadatum to be serializable and set up search interfaces

not sure if this line is necessary. In fact, this whole method was written with the String representation in mind, I'm pretty sure.