immutable the host, port and cluster name
fix some bugs
Merge pull request #5 from michaelnsj/FIX_ES_BUGS

Merged.