[BackEnd][MemoUploader] Added functionality to specify ouput directory
[BackEnd][MemoUploader] Minor refactoring