Added backup files to gitignore.
Improved parameter retrieval and other things.