Bug fixes: In setting parameters and reading metadata files
1) Fixed a serious bug in set_parameters.m which could cause the threshold
display to incorrectly reflect changes made to marker scales or markers used to
identify foreground.
2) Fixed a bug which could lead to the last line of a metadata file not being read and a similar issue when adding new metadata.