Develop

Added unittested functions to compare.py.