Added Decode file class and some function implementation