Initailize basic encoding open file structure etc