Rft extend plt

Major overhaul of the RFT code, both in C and Python. The main new functionality is in commit: 205b8f9 - the rest is highlt required refactoring and testing.