csv parser and some data mining scripts