added memory plot script
reorganised projector code