- added preliminary tests of frequency measurements - refactored the signature of calibrate function to parametrize hash function - various cleanup