add csv test file
define file reader and p matrix