Added logout function and changed version