move host and port values to constants
add an explanatory readme