kicks old funcs out, adds json-support, usage-example