Added TURN config, fixed some bugs