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.