add set/get attribute
tabs to spaces, and added thrown exception
changed setattribute and getattribute to set and get
Merge pull request #12 from wisepotato/2.2

add set/get attribute