changes to glm algo, glossary, general cleanup