Did a little refactoring and added the option for clients to verify the server certificates