Added docs for generates decorator