changed structure of serializeable interface to more closely follow standard, as well as to be open for JSON parsing. Will impliment JSON fully later today.