created new measuring.py, documented measuring.py

created a new file measuring.py which contains all functions considered to be
thematically in the category of measuring time of functions; it got
also documented.
heavy refactorings, split test_contract and fixed error
refactored a little bit
inserted delete
implemented delete after test run
refactored