More explicit output and add of stdin reading