fixed indentations, improved NXTMain