Improvements

1) Enforce type safety and address all warnings.
2) Add keyboard accelerators to the file menu.