modified decoding, sending through channel, matrix class files and the main file