Images before binding to avoid errors, added categories in separate file, added a file log
Added category config file