Fix bug on pull media method
Add documentation and fix media parameter