Refactored utility methods and html template and barcode html into class methods/vars