adding kmf tests against R
cleaning up some dead code + adding __all__
cleaning up some lint errors