Still has minification grouping code in - need to test and debug this code.
Code cleaned
and some docs added.