code cleanup, added config files