Parses config file