Added L-M least-squares minimization
automated detection of laptop versus quest