makefile cleanup
initial version of str_rstrip()
improve makefile
fix off-by-one error and add tests