The best basic layout as of yet is to have a small base containing your lightning cannons, fireball catapults and ballistas as well as your storages then surrounded by one ring of walls a gap thhen another ring. (include royal hall if attempting to collect crowns). Then placing collectors and remaining defenses (also alliance portal as troops help defense) around the inner base then surrounding it with a ring of walls. All remaining unecessary buildings like barracks and army posts and armory leave surrounding base giving further spawn distance for enemy troops.