MATLAB code for the KSP Trajectory Optimization Tool