Implemented a better config initialisation

Implemented a better config initialisation and improved GUI