Finished separation of layout and structure layers, debugged for all 6 examples.

Moving on to merge this version with the bug fixes and improvements done on the main trunk since this work began