added core, operators directory and moved some into them