Moved example var to the top and added documentation