- added function to only test cpp rays (without matlab) - moved matlab subfunctions to private folder