Word API & media files test

Word API refactoring and media files persistence test (+ source formatting).