Fixed buffer concatenation.
Fixed potential overflow error.
Added comments to new relais parser.