initial commit

added management commands and refined progress code

added detached_categories in command

modification after feedback