Add support for shader refreshing; improved logging