Structure and evolution of single and binary stars