RF+DOC: renamed and documented classes and corrected pep8 in a few places