Refactoring;
Added --backup option;
finished --group option.