Small logging change
Added factorial example