changing wrong docs and fixing tests
merge and fixed a smaller error on relativediscount