Script tweaks; finish documentation