fixed memory leak. Made function logging a little less ad-hoc
metadata display window added
no longer displaying bogus values when mouse leaves display area