implemented checksum and token security. renamed sensor class attribute for identity to "name" for consistency with other classes