Fixed registered objects not being cleaned up by the garbage collector, moved example useage to readme