implemented runtime flags to host and port. Closes #1