Added some refactoring documentation