Refactored for more OO.

Corrected logic error with removing previous documentation folders.