fixed response server

fixed the conditional in the while loop
also moved the classes into proper src folders