simplify error handling

I tried to simplify the `if len(err)`... stuff before returning errors.
To do so, this version replaces the struct-wrapper with a direct []string type and makes append a method.