make version serializable
fixed java doc