updated ns analysis code with some minor bug fixes (subject names aand label orders) -- should be the final product now