added config file + cleaned up hard coded constants