Have a look at the documentation (such as it is) for the TWOLOC software package  README.FIRST

Download the compressed pages (source code, examples, scripts, compiled executables ) TWOLOC.TAR.Z