Create pred.m which captures functionality previously in pred_real.m and pred_test.m
Clean pred_real.m and add documentation