mod to chplusminus and chdiff
add test to test
Update Compat.py
Merge pull request #1 from sco93/master

mod to compat.py