Fixed return of serialize method, validating result and returning a boolean result and implemented reset method
Fixed doc comment on serialize method specifying return type