Add normalizing constant

Also, fix sign error in main script