documented all functions and methods included

small refactoring (names)