Added receive thread
Added config files