Added ability to init SugarConfig in code