Code cleanup, tweaked message formatting, added early ac-check-file implementation.