Create BAnalyze.m

See comments within code for a full description