solved issue references and counting problems
selection boxes for components, reference composisiton
lots of fixes