added registry
added type find fn
update package json
added validation, fixed minor errors