Added configuration file functionality, removed unneded header includes from main.c