adapted code to introduce a Parser class
new function: get_fieldlist, returns all fieldnames to a given format_string
sorry for not documenting