final version of non-class based contact definitions. Useful code from here has been modified and implemented in scaffolding.py