Added a "-listdevices" option to nltool to list all available devices. Simplified code. [Couriersud]