added device properties class

returns max number of threads executed at the
same time, unfortunetly other factors limit
the number further, so it's not very useful