Gravar-mail: How attention and reinforcers jointly optimize the associations between sensory representations, working memory and motor programs