changed arrayList casts to copy constructors
Refactored layout directory to config directory