Refactored some parts of the code to use common elements definition.
Enhancement #3
Updated testcase for slurm.
Removed *.pyc
Added .gitignore.