Update design_prototype_decent.py

Refactoring code. Moving as much of the code to the modes seems to be the way to approach this task.