smart input
Merge pull request #41 from gurugray/input

«smart input»