client.py: filter trailing blanks and echoed input.
added a basic test for the p(rint) command.
added some docstrings for the tests.
test for g(iven) command