refactoring l1. made core genserver instead passing functions
refactoring l2, remove functions from erlog_logic
fix console
update doc
add todo