Reorganization: split ftfp into smaller .c files