Basic Hierarchical Calibration(with test)

Append multi-files input and testing.