Update var.rst

Added documentation for the @var tag.

Please let me know if there are any edits that need to be made :)