finalised pregroups and wrote readme