fixing log statements. adding jshinted semicolons. changing logger middleware to take options param