Added constants, saveInpFile.
A little bit more flesh.
Temporarily removed constants, fixed errors.