Remove a parameter of getData method

As well as some format changes
Move the configuration reader to a new class