fixed #10

Extracted Formeta parser from FormetaDecoder.
fixed #9

Extracted formatter classes from FormetaDecoder