remove blank lines
insert_effect(): remove unused var
comment
comment
add singleton key
unify add_effect() argument names
effect_id -> id, parent_id -> parent, values -> params
constructor: remove support for obsolete fields