added getHostname method
version updated