Adds .dat (a format scilab uses) to gitignore
Swaps the method behaviors of file writing to match the names.