added log model
fix G-algo, added logging
Merged master and log-done