Made config more consistant and added export location option
Export function added