Added spec for CLI usage + added exit method