Added missing import in used_space. Minor changes in cnchi.py