Made new UserLog class and added some XML functions