Removed unnecessary libraries, refactoring, implemented fdf.