Fixed bucket creation bug and added default config into code