Removed header files and #defines

Removed header files and #define s and put them in a separate file "headers.h"