added local way to compute normalization
make code good
Merge pull request #81 from teharrison/master

added local way to compute normalization