Many bug fixes

Fixed problem with category save.
Predefined value in config file.