More commenting and implemented getBarcode().