Attribute hash

Apologies - not used to doing pull requests from other forks.

Commit 28cf4ac allows you to pass a hash to attributes  ( i find this a lot easier when working from yaml )