Added missing argument in argument check.
Changed how localisation and theme files are loaded and accessed in memory, as well as a few minor adjustments.