Creating mapping for CtrlPBuffer and organizing file