Add missing variables. Correct existing ones. Change file attributes for executable scripts