Documentation and minor script variable cleanup