Lots of little changes

Little changes, add of getters and new class ray.