add general fmt functions, struct defs, start parser