Refactor directories and code documentation template