Added .gitignore to exclude directories not containing source code (especially binaries).
Implementation of read and input, based on private stubs.