Added shebang and function to read in data