Made first version of read function
 - Read function reads next char or moves position if not aligned with
   current position in stream.
Added prototype for unread function