On the theory of excitons in solids