Reads definitions from file instead of hard-coded.

Minor GUI improvements.