Added first version of LWRF_Macro

This version has a few bugs at the moment, but includes much of the
basic functionality I’m aiming for.  Most errors are likely to be C
coding issues to do with pointers and arrays - it’s been a couple of
years since I’ve done any!