delete an unneeded file
new method of gathering
new method of spreading

still can be improved
Merge pull request #2 from Ovilia/master

new method to calculate dof