add autolog
Merge pull request #39 from mpizza/fn_auto_console

add autolog.
fix bugs
Merge pull request #41 from seiyugi/fix_autolog_bugs

fix bugs