Refactored project into libfd and fdd