Cleaned version 1.0

-Inheritance of control devices and measure devices
-Only avarage read is pulled to database