Added matrix2json, fixed R dependency