Added groupIp static parameter and sanity check
Pass around a dict instaed of numerous variables , attributes can now be chosen at will with minimal modifications