comments and formatting
added unit test for throttling