cleanup in examples' print statements
tests added for the Examples