Added loadConfiguration()method,loads configuration!