Fixed access violation error.
Moved com testing logic to seperate files
Added a method, getDeviceNames