rename if.cpp to interfaces.cpp

futher refactor to legit c++ code. this commit closes issue #170.