updated to run k = 400, not k = N-1
cleaned up repo