Move eof check to queue and rename queue class

Now i can start implementing buffered read/write methods again
Move streams to inner classes