Made Config class more generic and finished implementation.