added create code feature; pulled editor settings into service;