Framework laid - now to debug

ideas in place, but not working fully