remove HUnit dependency for now
make imports explicit, fix a warning, remove some comments
don't crash when got IOError in REPL