flattened layout structure
refactored layout references
refactored layout building code
refactored lin task
completed flattening of layout structure