it works now!

moved update fcn inside agents
added main.cpp to test
helper fcns now obsolete
fixed many errors