added Logger, CanThrottle, align code style

sorry for the huge pull request.. but it's mainly adjusting coding style (capitalisation)