Simplify usage output (this info is redundant with the man page).
Split utility functions in a different file.
Add device listing and validation.