First complete set of scripts. Still some documentation and error-checking to add.