Added parent groups.
Renamed some functions and variables. Is backwards incompatible if you were using functions you shouldn't be.
Fixed quoting.
small fix