working compile, and nxjd. Base code for lab.