Merge pull request #229 from SlavaRa/CodeRefactor-improvements

Updating document class if the folder where it exists was moved
Small cleanup...
Removing extra blank lines
References are now being automatically updated on folder rename (from project manager's panel).