Added possibility to add subcategories. Issue #1.