Implementation of MatLab WHATraq program from Cong Zhou with added features and documentation comments