Fixed almost all Type declarations, also corrected the day-cycle process.