add set/get attribute
tabs to spaces, and added thrown exception
changed setattribute and getattribute to set and get