distinguish public vs private components. local -> locals

closes #32 closes #30