Close PrintStream after expansion

- the PrintStream does not flush if it is not closed after the expansion
Override skip method in LookaheadReader