Adds new feature as mentioned in #13 but the feature is not fully
finished yet. The new csv file under data is used to read the data from
when the class option csvdata is specified.