corrected parameter launch file and read / added error checking for file i/o