Added new sample - linking with libdevice
cosmetic fixes