Refactoring and final touches for my side project improved RAAS algo