changes to main file

updated header, wrapped the constant definitions and includes in an if(
is_active ) statement to prevent conflicts