Step 3: Fix all missing items to fix code gen

Added protection menu and code to support changing
Fixed setting the relationships source/destination classes
Generate code now works!!!!!!!!!!!