More edits to ratelimiter, added functional tests