fix readme file
catch invalid input and display warnings