Added @author and @license in header

Added buildStatArrays

Change-Id: I17a5cc62b4cb330c5b62ff8fbc48d2e344be4c14