Made the lib support utf-8 device configs and lzma compression
Added some comments, removed some debug prints