Added docstrings to code, fixed some validation functions, added some new validation functions and extended others, renamed YumBase class to follow PEP8.