Various small cleanups. Added validation to dictionary input boxes.