Added support for yaml and ini formats. Rewrite.