Added most of agent side work, and started main params file