Config added and structure changes

Configuration file implementation.
Changed core structure for more flexibility.
More large comment header/footers for code block clarity.