Added missing var statements.
Added README, elaborated a little further in example description.