error checking for missing variables, display for errors, lists and slight minification