description of dnorm
working on the distance example
some corrections to auto-generated code and added an elType for copyToDevice()