Updated structure; processing and outputting csv now.