Added removal functionality for groups, made a slightly better interface.
Cleaned up debugging code.