added attributes() fxn to return attribute dict