Added rate limit feature

Added rate limit feature. fixes #8