Changed fixed arrays to slices and error messages.
Grouped all errors as new variables.