Logging and dependency injection added. Also, configurations tidied up and completed. StyleCop rules sorted.