Rename rank to position and banner to media.
Fix some PHPDoc.