First attempt at merging old EOF check code
Make input() use the lookahead functionality.

Done by simply calling input_get() instead of directly using getchar().
Issue #37.
Make the EOF check use the lookahead functionality.

Issue #37.
Move around functions for better readability.

Issue #37.
Move around test function calls for more logical order.

Issue #37.
Merge remote-tracking branch 'origin/intertarget-code' into fix-eof-impl
Merge branch 'fix-eof-impl' into intertarget-code