implementation about join and invite done
merging files