Added DI analysis functions.
Fixed import problem in testing msa analysis functions.