Move mode variable to injectors and add error handle when develop mode, Change default mode to "develop"