Added indentation function to logger. Some more debug log entries.