changed serialize format
updated examples
fixed documentation