Joss Whedon talks directing and writing 'The Avengers'