added self authentication method and commented class