Initial commit of original BAMS_Predict code