added rate limiting for paid level
added better comments throughout