add header guard to log.h
fix rules.
Move replay solution to solve from solve_test
Add solve_main.