Register target into target_database instead target.data
Remove unused local var target_key
Put all attributes in data['options'] into data
Change get access of common attributes to []
Remove unuseful comments
Fix deprecated warning message
change target common member from data[] to true member