Added camera ray code, other small methods