fixed distinct relationship creation + update readme to js