Next time you start working on a program…..first start by writing the class , function names and the initial comments with arguments and return type….
That can serve as both replacement for tech spec……..and a clarity for design…….