Fixed a bug in authorizing a drive where random characters were added. Added a function to retrieve the serial key.