Changing configuration variable naming and adding comments. Adding doc strings to log functions.