added device parmeters file and made function parameters work