Changed reading functions from lambdas to named reading functions and exported symbols