Grand refactoring.
Added functions for fonts and internationalization.