Added velocityMethod.m and FBGFunction.m