First impl of gaps in the input stream

#8 Up for review