Rearranged and improved input file as well as check for existance of inp...

...ut in inout.f90