added logs, clear code, improve secure preferences reading, added tracking tags as enums and not as strings