Now includes more documentation and more realistic interaction. It still needs some clean up to check for orphaned references etc... but the ideas are there...
clean up