fix bugs in interpreter and client

fix bug where incorrect input give null pointer. In client, check
streams not null before closing. Delete old test file.
delete some testing code of Client
add junit to class path