ffnet minor fixes, data preprocessing