Overhauled main mod file (format to come)