improvements:  and  are init'ed to arrays to prevent errors and when appending to ->label, a space character is appended at the end to separate the words
fixed the wrong keyword 'class'->'interface'