Bt 3578 implement file storage of content

@nostra please review code
 - Fixed bad coding
 - Fixed sonar