Updated comments and reverted code from CI build

added further commenting on this file and removed site specific information from the build that was relevant in CodeIgniter