updated libraries, turned into an autoplugin
updated libraries, adapted code, cleaned up key structure