On Riemann's Theory Of Algebraic Functions