add pointwise KL measure;refactoring package names