Fixed some leaks and avoided creating a complex 3d universe if no display is due.

Change nslj to a separate project.