Input stream for consoole input

Almost done working