added configurable port and hostname, and a crummy makefile