Add reset function to AFDS; fix bug in AFDS course calculator