Major changes: glm now checks if some of the variables are the same number of levels and eventually generate the missing levels. Also now formula are given as a string character for consistency with other functions.