updated code

added y/es and n/o
also added .txt default extension