Added the step_matrix and fixed a minimal GUI