Extract variable recommendations to a class

Also reworded some variable error messages