finished subtraction function and tests; had some errors; fixed