improved the bash script to support devices with serials which are not exactly equal to 16. Also added support for HTML output