Fixed call of NLSAS algorithm. Updated error catching. Autocomplete needs checking. Jquery not always updating fields properly.