added the profile functions, mostly done need to finish tomorrow morning