Config file parser

A new designed based on comments