Added invite system and fixed mistakes