tided up some stuff, project ajax etc