Lordfire classes and functions. Minor fixes, working for 8.60.