some work done

doctrine implementation to make things simpler.
and more other tweaks and dev bulk work