Streamlined some of the csv reading code and added more detailed documentation.