finished wireframing logic, added refs for code