Better device identification in flashmode and loader identification
Removed unused classes