Hierarchical Self-assembly and Application of Functional π-systems