Adding cmode command

closes #25