Added a production mode for the choose function

- debug mode triggers logging
- development mode triggers selections (grep and choose)
- documentation fix