Fixed lighting memory issues, fixed emptychunk issue with examiner

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>