Improved documentation across most of the scripts