Implement labels and improve documentation