Some improvements on agent_process as main routine, added external files for urls support and made unified structure