Updated doc and added exit option