Added new calendar date system and fixed major bugs