Can now switch between readline and fgets with -D_readline flag.

I think I fixed a memory leak too.