Added source management and global config file and fixed codemirror usage