Map and person scripts

Plus some fixes.