Refactored server_endpoint to allow end users to access start_accept error states references #335

also more documentation