formatting and comment changes to nnls for readability