added module to define constants and organized code

to compile and execute, edit ./run file and change the compiler so that
FC=gfortan then execute run: ./run