Fixed many Input-related bugs and issues
Merge pull request #1 from c4stan/master

Fixed many Input-related bugs and issues