bugfixes
improved functionality
added function is.gdist