first code commit

locfdr.py is unfinished; parts of locfns still need testing.
Rfunctions.py appears to work without a hitch.