[Closes #4, #5] Implemented confirmation/survey flow logic and optimized code