Some cleaning and adding of tests, fixed two bugs with psdAdd() and wrAdd(), and bumped version.