added try-catch block; fixed plane and light issues