Organized code and added mesh optix code