@Johnny
check your error log...
also...
1. if you want the settlement to be a castle you have to put "settlement castle" instead of settlement.
2. motte_and_bailey is the starting building for a village level settlement a small town would need a wooden castle, a town would need a castle, etc.
those are just a couple of things that I notice just glancing at your entry...I can't say if this will solve all of your problems, but the way you have it now will cause your game to crash.
LC