Added methods to ray

Tried to see if I could pass a string command to ray to do what we
wanted. Does not compile...