Fix file permissions
Resolve gfortran warnings and use command line argument for simulation file