Added basic definition display windows for testing. Switch to TreeMap for sorting. Fixed some errors in definition & metadata property getters.