08MAY2014_LOGGING

ADDED LOGGING FUNCTIONS AND PROTECTED DIRECTORY VARIABLES.