implemented probability matrix, file readers, and global variable declarations