triangle intersect implemented, some changes to classes