added short success code to subject line of email report; implement lockfile functionality for testing