inputrc added, script beefed up