On Riemanns Theory of Algebraic Functions and Their Integrals