Improve scripts and clarify documentation