added the code for the debugging tool _consistency_check; added doctesting too
Merge branch 'master' of https://github.com/roed314/OMS