More keys for the PYTHON code, better matlab scripts and added functions to form groups.