Added device recognition.
Fixed bug for A-400 devices.
Merge pull request #3 from jeroenseegers/development

Added device recognition.