Class recognition + Minor fixes

Agent class (taxi or rickshaw or ambulance) can now be identified.
Cleaner authentication steps.