Modeling electronic structure and spectroscopy in correlated materials and topological insulators