renamed Netvend class to Agent class